Make value of 'build:' relative to the yml file.#1213
Conversation
There was a problem hiding this comment.
Could we instead call resolve_build_path from process_container_options? I think that'd be conceptually cleaner.
There was a problem hiding this comment.
Will do. It sure looks better in process_container_options.
|
Thanks so much! Looks really good. Only some small changes to make - see commit comments. |
There was a problem hiding this comment.
You can use the expand_path helper here, like get_env_files and resolve_host_path do.
|
Almost there. Once you've done that last one, could you rebase and squash? Thanks. |
|
All tests passed locally, the failure seems to be unrelated to my changes. Is there something I can do? |
|
Nope, was a Jenkins hiccup. Passing now. LGTM |
|
Ah, needs a rebase thanks to #1226 - sorry! |
|
Shifted |
|
Thanks. Could you rebase to the current master? I'm seeing confusing extra stuff in the tests diff. |
* This fix introduces one side-effect: the build parameter is now validated early, when the service dicionary is first constructed. That leads to less scary stack traces when the path is not valid. * The tests for the changes introduced here alter the fixtures of those (otherwise unrelated) tests that make use of the 'build:' parameter) Signed-off-by: Moysés Borges Furtado <moyses.furtado@wplex.com.br>
|
My bad, I should have run the diff myself before pushing, should be good now. |
|
⭐ LGTM ⭐ |
|
ping @dnephin - last bugfix for 1.2, so I'll roll another RC after this is merged! |
There was a problem hiding this comment.
if working_dir is required it really shouldn't be a kwarg, it should be just a regular positional argument
|
Just a minor style nit, nothing that would block a merge. LGTM |
Make value of 'build:' relative to the yml file.
Make value of 'build:' relative to the yml file. (cherry picked from commit 0f70b86)
Make value of 'build:' relative to the yml file. (cherry picked from commit 0f70b86) Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Make value of 'build:' relative to the yml file. Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Make value of 'build:' relative to the yml file. Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
* tag '1.2.0': (46 commits) Bump 1.2.0 Merge pull request docker#1278 from albers/completion-run-user Merge pull request docker#1261 from aanand/fix-vars-in-volume-paths Merge pull request docker#1202 from aanand/jenkins-script Merge pull request docker#1213 from moysesb/relative_build Merge pull request docker#1226 from aanand/merge-multi-value-options Merge pull request docker#1225 from aanand/fix-1222 Fix regression in Dns and DnsSearch settings Fix volume merging when there's no explicit host path Fix service dict merging when only one dict has a volumes key Update docker-py and requests version ranges Revert "Remove restriction for requests version, update docker-py requirement" Revert "Use dev version of Docker" Revert "Add 'labels:' config option" Add 'labels:' config option Use dev version of Docker Make volume host paths relative to file, merge volumes when extending Implement `extends` Specify all HostConfig at create time Add build status \o/ ... Conflicts: Dockerfile README.md script/build-linux
This fixes issue #1194 and is a prerequisite for implementing #1209